|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jade.content.schema.ObjectSchema
| Field Summary | |
static int |
MANDATORY
|
static int |
OPTIONAL
|
| Constructor Summary | |
protected |
ObjectSchema(java.lang.String typeName)
Constructor |
| Method Summary | |
protected void |
addBaseSchema(ObjectSchema base)
Adds a base schema. |
protected void |
addElement(java.lang.String name,
ObjectSchema elementSchema)
Add an attribute to the schema. |
protected void |
addElement(java.lang.String name,
ObjectSchema elementSchema,
int cardinality)
Add an attribute to the schema. |
java.lang.String[] |
getNames()
Returns the names of all attributes. |
ObjectSchema |
getSchema(java.lang.String name)
Retrieves an attribute's schema. |
java.lang.String |
getTypeName()
Retrieves the name of the type of this schema. |
boolean |
isAttribute(java.lang.String name)
Is name an attribute? |
boolean |
isMandatory(java.lang.String name)
Is the attribute name mandatory? |
abstract AbsObject |
newInstance()
Creates a new instance. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int MANDATORY
public static final int OPTIONAL
| Constructor Detail |
protected ObjectSchema(java.lang.String typeName)
typeName - | Method Detail |
protected void addElement(java.lang.String name,
ObjectSchema elementSchema,
int cardinality)
name - name of the attribute.elementSchema - schema of the attribute.cardinality - cardinality, i.e., optional or mandatory
protected void addElement(java.lang.String name,
ObjectSchema elementSchema)
name - name of the attribute.elementSchema - schema of the attribute.protected void addBaseSchema(ObjectSchema base)
base - the base schema.public java.lang.String[] getNames()
public boolean isMandatory(java.lang.String name)
throws OntologyException
name mandatory?name - name of the attribute.true if the attribute is mandatory.
public boolean isAttribute(java.lang.String name)
throws OntologyException
name an attribute?name - name to test.true if name is an attribute.
public ObjectSchema getSchema(java.lang.String name)
throws OntologyException
name - name of the attribute.namepublic java.lang.String getTypeName()
public abstract AbsObject newInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||